#pragma once
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<assert.h>

#define MAX_SIZE 10
typedef int SQDateType;

typedef struct SeqList
{
	SQDateType* a;
	int size;
	int capacity;
}SL;

void InitSeqList(SL* ps);
void SeqListprint(SL* ps);
void SeqListDestory(SL* ps);

void SeqListPushFront(SL* ps, SQDateType x);
void SeqListPushBack(SL* ps, SQDateType x);
void SeqListPopFront(SL* ps);
void SeqListPopBack(SL* ps);

void SeqlistCheakCapacity(SL* ps);
void SeqListInsert(SL* ps, int pos, SQDateType x);
void SeqListErase(SL* ps, int pos);

int SeqListFind(SL* ps, SQDateType x);
void SeqListModity(SL* ps, int pos, SQDateType x);